package day1_java数据类型变量;

public class Demo06ShopInventory {
    public static void main(String[] args) {
        String macBrand = "MacBookAir";
        double macSize = 13.3;
        double macPrice = 6988.88;
        int macCount = 5;

        //联想 Thinkpad 笔记本电脑
        String thinkpadBrand = "ThinkpadT450";
        double thinkpadSize = 14.0;
        double thinkpadPrice = 5999.99;
        int thinkpadCount = 10;

        //华硕ASUS笔记本电脑
        String ASUSBrand = "ASUS-FL5800";
        double ASUSSize = 15.6;
        double ASUSPrice = 4999.50;
        int ASUSCount = 18;

        //统计库存总个数、库存总⾦额
        int totalCount = macCount + thinkpadCount + ASUSCount;
        double totalMoney = (macCount * macPrice) + (thinkpadCount * thinkpadPrice)
                + (ASUSCount * ASUSPrice);

        System. out .println("------------------------------ 商城库存清单-----------------------------");
        System.out.println(macBrand + "      " + macSize + "      " + macPrice+"      " + macCount);
        System.out.println(thinkpadBrand+"     "+thinkpadSize+"     "+thinkpadPrice+"     "+thinkpadCount);
        System.out.println(ASUSBrand+"      "+ASUSSize+"      "+ASUSPrice + "      " + ASUSCount);
        System.out.println("-----------------------------------------------------------------------");
        System.out.println("总库存数：" + totalCount);
        System.out.println("库存商品总⾦额：" + totalMoney);

    }
}
